<div class="records form">
    <div class="actions specific">
        <ul>
            <li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $this->Form->value('Record.id')), null, sprintf(__('Esta seguro que desea eliminar # %s?', true), $this->Form->value('Record.id'))); ?></li>
        </ul>
    </div>
    <?php echo $this->Form->create('Record'); ?>
    <fieldset>
        <legend><?php __('Editar Historial'); ?></legend>
        <?php
        echo $this->Form->input('id', array('label' => 'Id'));
        echo $this->Form->input('start_date', array('label' => 'Fecha Inicio', 'type' => 'text'));
        echo $this->Form->input('end_date', array('label' => 'Fecha Fin', 'type' => 'text'));
        echo $this->Form->input('client_id', array('type' => 'hidden'));
        echo $this->Form->input('car_id', array('type' => 'hidden'));
        ?>
    </fieldset>
    <?php echo $this->Form->end(__('Guardar', true)); ?>
</div>
<script type="text/javascript">
    (function($){
        // Date picker
        $("#RecordStartDate").datepicker({
            //yearRange: '1970:2010',
            defaultDate: new Date(),
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
        
        //toda la documentacion de esta librería la encontras aca
        //http://jqueryui.com/demos/datepicker/
    })(jQuery);
</script>
<script type="text/javascript">
    (function($){
        // Date picker
        $("#RecordEndDate").datepicker({
            //yearRange: '1970:2010',
            defaultDate: new Date(),
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
        
        //toda la documentacion de esta librería la encontras aca
        //http://jqueryui.com/demos/datepicker/
    })(jQuery);
</script>